const DIC = {
  vaild: [{
    label: '否',
    value: 0
  }, {
    label: '是',
    value: 1
  }]
}
export const tableOption = {
  border: true,
  index: true,
  searchBtn: false,
  columnBtn: false,
  refreshBtn: false,
  indexLabel: '序号',
  stripe: true,
  menuAlign: 'center',
  align: 'center',
  editBtn: false,
  delBtn: false,
  addBtn: false,
  labelWidth: 110,
  column: [
    // {
    //   label: 'id',
    //   prop: 'id',
    //   span: 24,
    //   editDisabled: true,
    //   addVisdiplay: false
    // },
    {
      label: '广告位置',
      prop: 'positionBrief',
      span: 24,
      width: 400,
      rules: [{
        required: true,
        message: '请输入广告位置'
      },
        {
          min: 3,
          max: 20,
          message: '长度在 3 到 20 个字符',
          trigger: 'blur'
        }]
    },
    {
      label: '广告位置编码',
      prop: 'code',
      span: 24,
      width: 200,
      editDisabled: true,
      addDisabled: false,
      rules: [{
        required: true,
        message: '请输入广告位置编码'
      },
        {
          min: 3,
          max: 20,
          message: '长度在 3 到 20 个字符',
          trigger: 'blur'
        }]
    },
    {
      label: '是否禁用',
      prop: 'state',
      span: 24,
      solt: true,
      valueDefault: 0,
      type: 'radio',
      dicData: DIC.vaild,
      rules: [{
        required: true,
        message: '请选择是否禁用',
        trigger: 'blur'
      }]
    },
    {
      label: '排序',
      prop: 'sort',
      type: 'number',
      span: 14,
      rules: [{
        required: true,
        message: '请输入排序',
        trigger: 'blur'
      }]
    },
  ]
}
